package com.example.goodpet.service;

import com.example.goodpet.bean.PetInformation;
import com.example.goodpet.utils.AppNetConfig;

import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.POST;
import retrofit2.http.Query;

public interface PetInformationService {
    //更新goodpetInformation
    @POST(AppNetConfig.UPLOAD_PET_INFORMATION)
    public Call<ResponseBody> uploadInformation(@Body PetInformation petInformation);

    //删除goodpetInformation
    @POST(AppNetConfig.DELETE_PET_INFORMATION)
    Call<com.example.goodpet.bean.ResponseBody<Object>> deleteInformation(@Query("id") long id);

    /**
     *
     * @param myId 使用人id
     * @param userId 展示人id
     * @param petId 展示宠物id
     * @return
     */
    //初始化petinfoAcitivty信息
    @POST(AppNetConfig.INIT_PET_INFO_ACTIVITY)
    Call<ResponseBody> initPetInfoActivity(@Query("myId") long myId,@Query("userId") long userId,@Query("petId") long petId);
}
